package org.kleathome.dcpu16.asm;

import org.kleathome.dcpu16.DCPU16Register;
import org.kleathome.dcpu16.emulator.Emulator;

public class ASMRegister extends DCPU16Register {

	public ASMRegister(String in)
	{
		super((char) 0x0000);
		if (in.equalsIgnoreCase("a"))
			_register = Emulator.Registers.A; 
		else if (in.equalsIgnoreCase("b"))
			_register = Emulator.Registers.B; 
		else if (in.equalsIgnoreCase("c"))
			_register = Emulator.Registers.C; 
		else if (in.equalsIgnoreCase("X"))
			_register = Emulator.Registers.X; 
		else if (in.equalsIgnoreCase("Y"))
			_register = Emulator.Registers.Y; 
		else if (in.equalsIgnoreCase("Z"))
			_register = Emulator.Registers.Z; 
		else if (in.equalsIgnoreCase("I"))
			_register = Emulator.Registers.I; 
		else if (in.equalsIgnoreCase("J"))
			_register = Emulator.Registers.J; 
		else if (in.equalsIgnoreCase("SP"))
			_register = Emulator.Registers.SP; 
		else if (in.equalsIgnoreCase("PC"))
			_register = Emulator.Registers.PC; 
		else if (in.equalsIgnoreCase("O"))
			_register = Emulator.Registers.O;
	}

}
